const structure = {
  namespaced: true,

  state: {
    // 树结构展开节点
    expandedKeys: [],
    // 选中的树节点
    selectedKeys: [],
    // 选中的树节点name
    selectedOrgName: '',
  },

  mutations: {
    set_expanded_keys: (state, keys) => {
      state.expandedKeys = keys;
    },
    set_selected_keys: (state, keys) => {
      state.selectedKeys = keys;
    },
    set_selected_name: (state, name) => {
      state.selectedOrgName = name;
    },
  }
}

export default structure;
